﻿@model KKU.RBSFPP.Shared.DAC.ProductUnit

@{
    ViewBag.Title = "Edit";
}
@Html.Partial("_AccountManagement")
<p>
    <a class="btn btn-success" ><span class="glyphicon glyphicon-edit"></span> แก้ไขหน่วยของเก่า</a>
</p>


@using (Html.BeginForm()) {
    @Html.AntiForgeryToken()
    @Html.ValidationSummary(true)

    <fieldset>
        <legend></legend>

        @Html.HiddenFor(model => model.Id)

       <h4>ชื่อ</h4>
        <div class="editor-field">
            @Html.TextBoxFor(model => model.Name, new { @class="form-control" ,placeholder="ชื่อหน่วย"})
            @Html.ValidationMessageFor(model => model.Name)
        </div>

        <h4>รายละเอียด</h4>
        <div class="editor-field">
            @Html.TextBoxFor(model => model.Description, new { @class="form-control" ,placeholder="รายละเอียด"})
            @Html.ValidationMessageFor(model => model.Description)
        </div>

        @Html.HiddenFor(model => model.CreateOn)

        <legend></legend>

         <p>
            <a href=@Url.Action("Index", "ProductUnit") class="btn btn-danger"><span class="glyphicon glyphicon-remove-circle"></span> ยกเลิก</a>
            <button type="submit" class="btn btn-success"><span class="glyphicon glyphicon-ok-circle"></span> ตกลง</button>
        </p>

        
    </fieldset>
}



@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
